import { CellHappyView } from "./CellHappyView";
import { ObjCreate } from "../common/ObjCreate";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
import { ResFileConst } from "../../resource/ResFileConst";
import { GlobalClass } from "../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../resource/ImagesConst";
type int = number;
//class MagpieBridgeView
    
    export  class MagpieBridgeView extends CellHappyView
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            this._tfDes = ObjCreate.createTextField("鹊桥完成度", 0, 38, 105, 20, this, GlobalStyle.textFormatPurple);
            _tfProgress.x = 85;
            _tfProgress.y = 46;
            _fireProgressBg.x = 37;
            _fireProgressBg.y = 0;
            _bmpProgress.x = 64;
            _bmpProgress.y = 38;
            return;
        }

        protected /* override */ getResName(): string
        {
            return ResFileConst.MagpieBridge;
        }

        protected /* override */ updateBitmapData(): void
        {
            _fireProgressBg.bitmapData = GlobalClass.getBitmapData(ImagesConst.MagpieBridgeBg);
            _bmpProgressOverData = GlobalClass.getBitmapData(ImagesConst.MagpieBridgeProcess);
            _bmpdProgress = _bmpProgressOverData.clone();
            _isLoadCompl = true;
            updateView();
            return;
        }

        protected /* override */ updateRomanic(arg1: int, arg2: int): void
        {
            super.updateRomanic(arg1, arg2);
            _tfProgress.text = arg1 + "/" + arg2;
            return;
        }

        /* internal */ /* var */_tfDes: Object /* flash.text.TextField */;
    }
